package net.adetech.crj.service;

import net.adetech.crj.common.ParamsUtil;
import net.adetech.crj.dao.ApplyMapper;
import net.adetech.crj.entity.Apply;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service("apply.getApplyById")
public class GetApplyByIdService implements BaseService {
    @Autowired
    ApplyMapper applyMapper;

    @Override
    public Map<String, Object> invoke(Map<String, Object> params) {
        String applyId = (String)params.get("applyId");
        Apply apply = this.applyMapper.getApplyById(applyId);
        return ParamsUtil.getParamsMap("apply",apply);
    }
}
